package com.projecy.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.projecy.product.dto.ProductDto;
import com.projecy.product.model.ProductFile;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductFileMapper extends BaseMapper<ProductFile> {
    List<ProductFile> findProductFile(Page<ProductFile> page,ProductFile productFile);
    @Insert("insert into product_file(product_id,product_name,product_nikck,audit_mark,delete_mark,material_mark,process_mark,repertory_mark,type,first_kind_name,second_kind_name,personal_unit,personal_value,list_price,plan_cost_price) values(#{productId},#{productName},#{productName},'未审核','未删除','未设计','未设计','未设计',#{type},#{oneClassify},#{twoClassify},#{meteringUnit},#{meteringNum},#{listPrice},#{planCostPrice})")
    Boolean insertProductFile(ProductDto productDto);
}
